//
//  TMGSectionHeaderView.m
//  TMGold
//
//  Created by Mac on 2017/12/15.
//  Copyright © 2017年 tangmu. All rights reserved.
//

#import "TMGSectionHeaderView.h"
#import "TMWaveView.h"
@implementation TMGSectionHeaderView

- (instancetype)initWithFrame:(CGRect)frame color:(UIColor *)color title:(NSString *)title{
    if (self == [super initWithFrame:frame]) {
        UIView * yeallowView = [[UIView alloc] initWithFrame:CGRectMake(20,0 +10 , 4, 15 )];
        yeallowView.backgroundColor = TM_orangeColor;
        yeallowView.centerY = self.height/2;
        [self addSubview:yeallowView];
        
        
        self.titleLable = [[STLabel alloc] initWithFrame:CGRectMake(yeallowView.right + 15, yeallowView.top, 200, 15)
                                                         text:title
                                                    textColor:TM_firstTextColor
                                                         font:13
                                                  isSizetoFit:NO
                                                textAlignment:NSTextAlignmentLeft];
        self.titleLable.centerY = self.height/2;
        [self addSubview:self.titleLable];
    }
    return self;
}

@end
